matrix:
include:
- os: linux
- dist: trusty
+ dist: xenial
sudo: required
services: docker
compiler: gcc
env:
- BUILD_TYPE="docker"
- os: linux
- dist: trusty
+ dist: xenial
sudo: required
services: docker
compiler: clang
compiler: gcc
env:
- BUILD_TYPE="local"
- - QT_VERSION="5.9.7"
+ - QT_VERSION="5.9.7" # 5.12.1 vtesto stmsdf fails differently on xenial & bionic
addons:
apt:
packages:
compiler: gcc
env:
- BUILD_TYPE="coverage"
- - QT_VERSION="5.7.1"
+ - QT_VERSION="5.9.7"
addons:
apt:
packages:
message("Qt5Core_COMPILE_DEFINITIONS List of definitions for use with the COMPILE_DEFINITIONS target property: \"${Qt5Core_COMPILE_DEFINITIONS}\"")
message("Qt5Core_FOUND Boolean describing whether the module was found successfully: \"${Qt5Core_FOUND}\"")
message("Qt5Core_EXECUTABLE_COMPILE_FLAGS String of flags to be used when building executables: \"${Qt5Core_EXECUTABLE_COMPILE_FLAGS}\"")
-if (${Qt5Core_VERSION} VERSION_LESS 5.7)
- message(FATAL_ERROR "Qt version ${Qt5Core_VERSION} found, but version 5.7 or newer is required.")
+if (${Qt5Core_VERSION} VERSION_LESS 5.9)
+ message(FATAL_ERROR "Qt version ${Qt5Core_VERSION} found, but version 5.9 or newer is required.")
endif()
include_directories(AFTER SYSTEM ${Qt5Core_INCLUDE_DIRS})
add_definitions(${Qt5Core_DEFINITIONS})
# Enforce minimum Qt version.
# versionAtLeast() was introduced in Qt 5.10, so we can't count on it being available.
-MIN_QT_VERSION = 5.7 # major[.minor[.patch]]
+MIN_QT_VERSION = 5.9 # major[.minor[.patch]]
MIN_QT_VERSION_COMPONENTS = $$split(MIN_QT_VERSION, .)
MIN_QT_VERSION_MAJOR = $$member(MIN_QT_VERSION_COMPONENTS, 0)
MIN_QT_VERSION_MINOR = $$member(MIN_QT_VERSION_COMPONENTS, 1)
# MIN_QT_VERSION in configure.ac should correspond to the QT_VERSION_CHECK arguments in main.cc and gui/main.cc
-MIN_QT_VERSION=5.7
+MIN_QT_VERSION=5.9
if test "$QMAKE" = "no"; then :
as_fn_error $? "Qt qmake (with QT_VERSION >= $MIN_QT_VERSION) is required but was not found." "$LINENO" 5
AC_CHECK_TOOLS(LRELEASE, [lrelease-qt5 lrelease])
# MIN_QT_VERSION in configure.ac should correspond to the QT_VERSION_CHECK arguments in main.cc and gui/main.cc
-MIN_QT_VERSION=5.7
+MIN_QT_VERSION=5.9
AS_IF([test "$QMAKE" = "no"], [
AC_MSG_ERROR([Qt qmake (with QT_VERSION >= $MIN_QT_VERSION) is required but was not found.])
])
int main(int argc, char**argv)
{
// MIN_QT_VERSION in configure.ac should correspond to the QT_VERSION_CHECK arguments in main.cc and gui/main.cc
-#if (QT_VERSION < QT_VERSION_CHECK(5, 7, 0))
+#if (QT_VERSION < QT_VERSION_CHECK(5, 9, 0))
#error this version of Qt is not supported.
#endif
(void) new gpsbabel::UsAsciiCodec(); /* make sure a US-ASCII codec is available */
// MIN_QT_VERSION in configure.ac should correspond to the QT_VERSION_CHECK arguments in main.cc and gui/main.cc
-#if (QT_VERSION < QT_VERSION_CHECK(5, 7, 0))
+#if (QT_VERSION < QT_VERSION_CHECK(5, 9, 0))
#error This version of Qt is not supported.
#endif
)
}
-QT_VERSION=${1:-5.7.1}
+QT_VERSION=${1:-5.12.1}
QT_VERSION_SHORT=${QT_VERSION//./}
-# older Qt releases use different package names and install locations.
-QT_VERSION_XY=$(echo ${QT_VERSION} | cut -d "." -f -2)
-QT_VERSION_XY_SHORT=${QT_VERSION_XY//./}
# our expectation is that install-qt creates $QTDIR, $QTDIR/bin.
CACHEDIR=${HOME}/Cache
-QTDIR=${CACHEDIR}/Qt/${QT_VERSION_XY}/gcc_64
+QTDIR=${CACHEDIR}/Qt/${QT_VERSION}/gcc_64
if [ -d "${QTDIR}/bin" ]; then
echo "Using cached Qt."
mkdir -p ${CACHEDIR}
pushd ${CACHEDIR}
# install-qt creates the install at $PWD/Qt.
- QT_CI_PACKAGES=qt.${QT_VERSION_XY_SHORT}.gcc_64 QT_CI_DOWNLOADER="wget -nv -c" PATH=${TRAVIS_BUILD_DIR}/tools/qtci:${PATH} install-qt ${QT_VERSION}
+ QT_CI_PACKAGES=qt.qt5.${QT_VERSION_SHORT}.gcc_64 QT_CI_DOWNLOADER="wget -nv -c" PATH=${TRAVIS_BUILD_DIR}/tools/qtci:${PATH} install-qt ${QT_VERSION}
popd
validate
rm ${CACHEDIR}/qt-opensource*.run
)
}
-QT_VERSION=${1:-5.12.0}
+QT_VERSION=${1:-5.12.1}
QT_VERSION_SHORT=${QT_VERSION//./}
# our expectation is that install-qt creates $QTDIR, $QTDIR/bin.
)
}
-QT_VERSION=${1:-5.12.0}
+QT_VERSION=${1:-5.12.1}
QT_VERSION_SHORT=${QT_VERSION//./}
# our expectation is that install-qt creates $QTDIR, $QTDIR/bin.